﻿namespace uTorrentNAS
{
    using System.Collections.Generic;

    public class Configuration
    {
        public UTorrentSettings UTorrentSettings { get; set; }

        public ScannerSettings ScannerSettings { get; set; }

        public Preferences Preferences { get; set; }
    }

    public class UTorrentSettings
    {
        public string ServerAddress { get; set; }

        public string Username { get; set; }

        public string Password { get; set; }
    }

    public class ScannerSettings
    {
        public bool StartOnLaunch { get; set; }

        public int Interval { get; set; }
    }

    public class Preferences
    {
        public bool ExtractArchives { get; set; }

        public bool CleanupFiles { get; set; }

        public bool CopyFiles { get; set; }
        
        public bool RemoveFinishedTorrent { get; set; }

        public IEnumerable<LabelItem> LabelItems { get; set; }
    }

    public class LabelItem
    {
        public string Name { get; set; }

        public string DestinationPath { get; set; }
    }
}